import service from './request'

export function getOrderList (params = {}) {
  return service({
    url: '/order',
    method: 'get',
    params,
  })
}

export function orderCreate (order) {
  return service({
    url: '/order/add',
    method: 'post',
    data: order,
  })
}

export function orderEdit (order) {
  return service({
    url: '/order/edit',
    method: 'post',
    data: order,
  })
}

export function orderDelete (ids) {
  return service({
    url: '/order/delete',
    method: 'post',
    data: { ids },
  })
}
